home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch08 / 08fig05.wrl < prev    next >
Text File  |  1996-09-23  |  660b  |  35 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright 1997 By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Pulsing ball
  8.         DEF Ball Transform {
  9.             children Shape {
  10.                 appearance Appearance {
  11.                     material Material { }
  12.                 }
  13.                 geometry Sphere { }
  14.             }
  15.         },
  16.     # Animation clock
  17.         DEF Clock TimeSensor {
  18.             cycleInterval 2.0
  19.             loop TRUE
  20.         },
  21.     # Animation path
  22.         DEF BallPath PositionInterpolator {
  23.             key [ 0.0, 0.20, 0.65, 1.0 ]
  24.             keyValue [
  25.                 1.0 1.0 1.0,
  26.                 1.5 1.5 1.5,
  27.                 1.1 1.1 1.1,
  28.                 1.0 1.0 1.0,
  29.             ]
  30.         }
  31.     ]
  32. }
  33. ROUTE Clock.fraction_changed TO BallPath.set_fraction
  34. ROUTE BallPath.value_changed TO Ball.set_scale
  35.